package com.dkm.ec.sale.persistence.entity;
import org.apache.commons.lang.builder.ToStringBuilder;

import com.dkm.base.api.annotion.IField;
import com.dkm.base.api.annotion.ITable;
import com.dkm.base.db.persistence.entity.AbstractPo;

/**
 * 对象功能:产品销售价格 Tbl对象
 * 开发公司:SKG.COM
 * 开发人员:Yuki
 * 创建时间:2015-01-23 15:26:47
 */
 @ITable(name="salePrice",code="skg_sale_price")
public class SalePriceTbl extends AbstractPo<String>{
	@IField(name="id",column="id_")
	protected String  id; 		/*价格ID*/
	@IField(name="prodSkuId",column="prod_sku_id_")
	protected String  prodSkuId; 		/*产品SKU ID*/
	@IField(name="type",column="type_")
	protected String  type; 		/*价格类型。sales_price=销售价；whole_price=批发价；pre-price=预售价；back_order=缺货销售价；*/
	@IField(name="price",column="price_")
	protected Double  price; 		/*价格*/
	@IField(name="minNum",column="min_num_")
	protected Integer  minNum; 		/*单一订单最小数量*/
	@IField(name="maxNum",column="max_num_")
	protected Integer  maxNum; 		/*单一订单最大数量*/
	@IField(name="maxTotal",column="max_total_")
	protected Integer  maxTotal; 		/*最大可售数量。针对预售 和 缺货销售类型。*/
	@IField(name="saleTotal",column="sale_total_")
	protected Integer  saleTotal; 		/*本价格已售数量。*/
	@IField(name="config",column="config_")
	protected String  config; 		/*附加配置，JSON格式。作为某些价格类型的附加配置的自由扩展。如批发价，团购价的关联因素配置。*/
	@IField(name="fromTime",column="from_time_")
	protected java.util.Date  fromTime; 		/*起始时间*/
	@IField(name="toTime",column="to_time_")
	protected java.util.Date  toTime; 		/*结束时间*/
	@IField(name="status",column="status_")
	protected String  status; 		/*状态。inactive=未激活；actived=激活；expired=过期*/
	
	public void setId(String id) 
	{
		this.id = id;
	}
	/**
	 * 返回 价格ID
	 * @return
	 */
	public String getId() 
	{
		return this.id;
	}
	public void setProdSkuId(String prodSkuId) 
	{
		this.prodSkuId = prodSkuId;
	}
	/**
	 * 返回 产品SKU ID
	 * @return
	 */
	public String getProdSkuId() 
	{
		return this.prodSkuId;
	}
	public void setType(String type) 
	{
		this.type = type;
	}
	/**
	 * 返回 价格类型。sales_price=销售价；whole_price=批发价；pre-price=预售价；back_order=缺货销售价；
	 * @return
	 */
	public String getType() 
	{
		return this.type;
	}
	public void setPrice(Double price) 
	{
		this.price = price;
	}
	/**
	 * 返回 价格
	 * @return
	 */
	public Double getPrice() 
	{
		return this.price;
	}
	public void setMinNum(Integer minNum) 
	{
		this.minNum = minNum;
	}
	/**
	 * 返回 单一订单最小数量
	 * @return
	 */
	public Integer getMinNum() 
	{
		return this.minNum;
	}
	public void setMaxNum(Integer maxNum) 
	{
		this.maxNum = maxNum;
	}
	/**
	 * 返回 单一订单最大数量
	 * @return
	 */
	public Integer getMaxNum() 
	{
		return this.maxNum;
	}
	public void setMaxTotal(Integer maxTotal) 
	{
		this.maxTotal = maxTotal;
	}
	/**
	 * 返回 最大可售数量。针对预售 和 缺货销售类型。
	 * @return
	 */
	public Integer getMaxTotal() 
	{
		return this.maxTotal;
	}
	public void setConfig(String config) 
	{
		this.config = config;
	}
	/**
	 * 返回 附加配置，JSON格式。作为某些价格类型的附加配置的自由扩展。如批发价，团购价的关联因素配置。
	 * @return
	 */
	public String getConfig() 
	{
		return this.config;
	}
	public void setFromTime(java.util.Date fromTime) 
	{
		this.fromTime = fromTime;
	}
	/**
	 * 返回 起始时间
	 * @return
	 */
	public java.util.Date getFromTime() 
	{
		return this.fromTime;
	}
	public void setToTime(java.util.Date toTime) 
	{
		this.toTime = toTime;
	}
	/**
	 * 返回 结束时间
	 * @return
	 */
	public java.util.Date getToTime() 
	{
		return this.toTime;
	}
	public void setStatus(String status) 
	{
		this.status = status;
	}
	/**
	 * 返回 状态。inactive=未激活；actived=激活；expired=过期
	 * @return
	 */
	public String getStatus() 
	{
		return this.status;
	}
	
	
	public Integer getSaleTotal() {
		return saleTotal;
	}
	public void setSaleTotal(Integer saleTotal) {
		this.saleTotal = saleTotal;
	}
	/**
	 * @see java.lang.Object#toString()
	 */
	public String toString() 
	{
		return new ToStringBuilder(this)
		.append("id", this.id) 
		.append("prodSkuId", this.prodSkuId) 
		.append("type", this.type) 
		.append("price", this.price) 
		.append("minNum", this.minNum) 
		.append("maxNum", this.maxNum) 
		.append("maxTotal", this.maxTotal) 
		.append("saleTotal", this.saleTotal) 
		.append("config", this.config) 
		.append("fromTime", this.fromTime) 
		.append("toTime", this.toTime) 
		.append("status", this.status) 
		.toString();
	}
}